﻿
<div class="modal-header">
    <button type="button" class="close" ng-disabled="loadingState" ng-click="close();"><span aria-hidden="true">&times;</span></button>
    <h3 class="modal-title">意外处理-确认授权码</h3>
</div>

<div class="modal-body">
    <form class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-4 control-label">请求码：</label>
            <div class="col-sm-8">
                <!--<input type="text" class="form-control" value="{{requestCode}}" readonly="readonly" />-->
                <label class="form-control-static" id="requestCode">{{requestCode}}</label>
            </div>
            <div class="col-sm-2">
                <!--复制功能的按钮：暂时隐藏-->
                <!--<label class="form-control-static text-info" style="cursor: pointer;" id="btnCopy">
                    <i class="fa fa-copy"></i>
                    复制
                </label>-->
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-4 control-label">授权码：</label>
            <div class="col-sm-8">
                <input ng-model="authorizationCode" type="text" class="form-control" />
            </div>
        </div>
    </form>
</div>

<div class="modal-footer">
    <button class="btn btn-turquoise" ng-click="save();" ng-disabled="loadingState">
        <i class="fa fa-spinner fa-spin" ng-show="loadingState"></i>
        <i class="fa fa-check" ng-hide="loadingState"></i>
        确定
    </button>
    <button class="btn btn-gray" ng-click="close();" ng-disabled="loadingState">
        <i class="fa fa-close"></i>
        关闭
    </button>
</div>

<!--复制功能的实现：暂时隐藏-->
<!--
<script src="App/vendor/jquery-zclip/jquery.zclip.min.js"></script>
<script>
    $(function () {
        $('#btnCopy').zclip({
            path: 'App/vendor/jquery-zclip/ZeroClipboard.swf',
            copy: function() {
                var copyText = $('#requestCode').text();
                if (!copyText || '&nbsp;' == copyText) {
                    return null;
                }
                return copyText;
            },
            afterCopy: function() {
                alert('成功复制！');
            }
        });
    });
</script>-->
